package com.dao;

import com.alibaba.fastjson.JSONArray;
import com.vo.Message;
import com.vo.Revert;

public interface NoteDAO {
    public JSONArray getMessageByPage(int page, int limit);
    public JSONArray getInfoByKeyWord(String keyWord);
    public JSONArray getRevertByMessageID(int messageId);
    public String getRevertWriterByID(int revertId);
    public String getMessageWriterByID(int messageId);
    public boolean updateMessage(Message message);
    public boolean addMessage(Message message);
    public boolean deleteMessage(int messageId);
    public boolean updateRevert(Revert revert);
    public boolean addRevert(Revert revert);
    public boolean deleteRevert(int revertId);
}
